<template>
  <div class="row">
    <div class="card">
      <a href="https://github.com/xxxxxx"
         target="_blank">
        <img src="https://cn.vuejs.org/images/logo.svg"
             style='width: 100px' />
      </a>
      <p class="card-text">xxxxxx</p>
    </div>
    <div class="card">
      <a href="https://github.com/xxxxxx"
         target="_blank">
        <img src="https://cn.vuejs.org/images/logo.svg"
             style='width: 100px' />
      </a>
      <p class="card-text">xxxxxx</p>
    </div>
    <div class="card">
      <a href="https://github.com/xxxxxx"
         target="_blank">
        <img src="https://cn.vuejs.org/images/logo.svg"
             style='width: 100px' />
      </a>
      <p class="card-text">xxxxxx</p>
    </div>
    <div class="card">
      <a href="https://github.com/xxxxxx"
         target="_blank">
        <img src="https://cn.vuejs.org/images/logo.svg"
             style='width: 100px' />
      </a>
      <p class="card-text">xxxxxx</p>
    </div>
    <div class="card">
      <a href="https://github.com/xxxxxx"
         target="_blank">
        <img src="https://cn.vuejs.org/images/logo.svg"
             style='width: 100px' />
      </a>
      <p class="card-text">xxxxxx</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'List',
  data(){
    return {
        users:[]
    }
  },
  mounted(){
    this.$bus.$on('search-user', this.searchUser)
  },
  methods:{
    searchUser(users){
        console.log('List users: ', users)
    }
  },
  beforeDestroy(){
    this.$bus.$off('search-user')
  }
}
</script>

<style>
</style>